//**********************************************************************************
//snowmanApplet.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: 10/22/2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: Will demonstrate how to create java Graphics and Applet
//***********************************************************************************

import java.applet.Applet;
import java.awt.*;

public class snowmanApplet extends Applet
{
   //No main method for Applet
   
   public void paint(Graphics page)
   {
      //Define a reference point
      final int REFERENCE_X = 200;
      final int REFERENCE_Y = 110;
      
      setBackground(Color.cyan); //Set Background color
      
      page.setColor(new Color(128,46,11)); //Set ground color
      page.fillRect(0,350,400,50);         //Set ground size
      
      page.setColor(new Color(217,210,17)); //Set sun color
      page.fillOval(-50,-50,100,100);       //Set sun size (just 1/4 of it should appear)
      
      page.setColor(new Color(255,255,255));
      page.fillOval(REFERENCE_X-20,REFERENCE_Y, 50,50);
      page.fillOval(REFERENCE_X-45,REFERENCE_Y+45,100,80);
      page.fillOval(REFERENCE_X-70,REFERENCE_Y+120,150,130);
      
   }
}
